import { request } from './request.js';
export const getHospitalList = (params) => {
  return request({
    url: '/Maintain/SelectHospital/btn-fixhospisearch',
    method: 'get',
    params,
  });
};
export const addHospital = (params) => {
  return request({
    url: '/Maintain/AddHospital/btn-fixhospiadd',
    method: 'post',
    data: params,
  });
};
export const deleteHospital = (params) => {
  return request({
    url: `/Maintain/DeleteHospital/btn-fixhospidelete`,
    method: 'get',
    params,
  });
};
export const updateHospital = (params) => {
  return request({
    url: '/Maintain/UpdateHospital/btn-fixhospiupdate',
    method: 'post',
    data: params,
  });
};

/**首页调用的api接口 */
//医院列表
export const GetHospitalInfo = (params) => {
  return request({
    url: '/Maintain/GetHospitalList',
    method: 'post',
    data: params,
    headers: {
      'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
    },
  });
};
//批量插入医院
export const addHospitalList = (params) => {
  return request({
    url: '/Maintain/addHospitalList/btn-fixhospiload',
    method: 'post',
    data: params,
  });
};
